#!/bin/bash
temp="makefileTemp"
if [ $# -gt 0 ]
then
temp=$1
fi

files=""
for file in $(ls -R *.cpp */*.cpp);
do
	files=$files" "$file
done

rm -f $temp"Done"
cp $temp $temp"Done"
sed -i "s:files:${files}:" $temp"Done"

echo "ok, please do make -f ${temp}Done , miniS will gen!"
